package com.ruoyi.ncpcs.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ruoyi.ncpcs.domain.DataQueryReq;
import com.ruoyi.ncpcs.domain.NcpcsInterfaceFields;

/**
 * interfaceFieldsManageMapper接口
 *
 * @author ruoyi
 * @date 2022-09-25
 */
public interface NcpcsInterfaceFieldsMapper {
    /**
     * 查询interfaceFieldsManage
     *
     * @param id interfaceFieldsManage主键
     * @return interfaceFieldsManage
     */
    public NcpcsInterfaceFields selectNcpcsInterfaceFieldsByInterfaceId(Long id);

    /**
     * 查询interfaceFieldsManage列表
     *
     * @param ncpcsInterfaceFields interfaceFieldsManage
     * @return interfaceFieldsManage集合
     */
    public List<NcpcsInterfaceFields> selectNcpcsInterfaceFieldsList(NcpcsInterfaceFields ncpcsInterfaceFields);

    /**
     * 新增interfaceFieldsManage
     *
     * @param ncpcsInterfaceFields interfaceFieldsManage
     * @return 结果
     */
    public int insertNcpcsInterfaceFields(NcpcsInterfaceFields ncpcsInterfaceFields);

    /**
     * 修改interfaceFieldsManage
     *
     * @param ncpcsInterfaceFields interfaceFieldsManage
     * @return 结果
     */
    public int updateNcpcsInterfaceFields(NcpcsInterfaceFields ncpcsInterfaceFields);

    /**
     * 删除interfaceFieldsManage
     *
     * @param id interfaceFieldsManage主键
     * @return 结果
     */
    public int deleteNcpcsInterfaceFieldsByInterfaceId(Long id);

    /**
     * 批量删除interfaceFieldsManage
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNcpcsInterfaceFieldsByInterfaceIds(Long[] ids);

    public List<HashMap<String, Object>> getData(DataQueryReq req);

    public String getBaseQuerySql(String interfaceId);

    String getQueryTable(String interfaceId);

    String getPkColumn(String interfaceId);

    void updateSuccess(List list);

    void updateFail(List list);
}
